package com.wanmait.employment.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.wanmait.employment.entity.Address;
import com.wanmait.employment.entity.Company;
import com.wanmait.employment.entity.RecruitmentPost;

import java.util.List;

public interface RecruitmentPostService extends IService<RecruitmentPost> {
    PageInfo<RecruitmentPost> findAll(String title, int pageNum, int pageSize);
    List<Address> getProvince(int parentId);
    Integer delete(Integer id);

    PageInfo<RecruitmentPost> findByPublisherId(Integer publisherId,String title,String currentStatus, Integer pageNum, Integer pageSize,String currentDate);

    void updateStatus(String idArray, String jobStatus);

    void deleteByIds(String idArray);

    RecruitmentPost findById(Integer id);

    List<RecruitmentPost> searchList(Integer companyId) ;

    void saveOrUpdatePost(RecruitmentPost recruitmentPost, String type,String checkList);
}
